package com.example.serverSide.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.serverSide.pojo.SysUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Select("SELECT count(*) FROM sys_user WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) < DATE(create_date);")
    Integer getNewUserCount();
}
